<?php slot('products') ?>
<div class="cont">
	<div class="left product">
		<h1 style="float:left;"><?php echo $product->getName() ?></h1>
		<div class="share">
			<span><?php echo __('Jaga') ?>:</span>
			<a href="http://www.facebook.com/sharer.php?u=<?php echo urlencode('http://'.$_SERVER['HTTP_HOST'].LinkGen::getInstance(LinkGen::PRODUCT)->link($product->getId())) ?>" target="_blank"><img src="/project_css_js/img/fb.png" class="over" alt="" /></a>
			<a href="http://www.addthis.com/bookmark.php?v=250&pubid=xa-4d7fd30b003a4ca5" class="addthis_button_compact at300m"><img src="/project_css_js/img/email.png" class="over" alt="" /></a>
		</div>
        <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4d7fd30b003a4ca5"></script>
		<div class="clear"></div>
		<div class="spacer"></div>

		<?php include_component('headerMenu', 'breadCrumbs') ?>

		<div class="clear"></div>

		<div id="product">
		<p>
          <?php echo $product->getDescription() ?>
        </p>
		
		<ul id="product-files">
          <?php foreach($files as $file): ?>
            <li><a href="/uploads<?php echo $file['file'] ?>" target="_blank"><img src="/project_css_js/img/icon_pdf.png" alt="" /><?php echo $file['Translation'][$sf_user->getCulture()]['name'] ?> <span>(<?php echo $file['extension'] ?>)</span></a></li>
          <?php endforeach ?>
		</ul>
		
		</div>
		<div id="product-pics">
			<img class="big" src="<?php echo @myPicture::getInstance($product->getBrandPicture())->thumbnail(571, 275, 'center')->url()?>" alt="" />
			<ul>
              <?php foreach($pictures as $picture): ?>
                <li><a href="/uploads<?php echo $picture['file'] ?>"><img src="<?php echo @myPicture::getInstance($picture['file'])->thumbnail(110, 55, 'center')->url()?>" alt="" /></a></li>
              <?php endforeach ?>
				<div class="clear"></div>
			</ul>
		</div>
		<div class="clear"></div>
<?php if($connected): ?>
		<h2 style="margin-top:20px;" class="h22"><?php echo __('Seotud tooted') ?></h2>
<?php endif ?>
	</div>
	<div class="right">
		<?php include_component('rightNestedMenu', 'render') ?>
	</div>
	<div class="clear"></div>
</div>
<?php if($connected): ?>
<div id="product-slider">
	<div id="viewport">
		<ul>
          <?php foreach($connected as $product): ?>
            <li>
				<img src="<?php echo @myPicture::getInstance($product['brand_picture'])->thumbnail(180, 91, 'center')->url()?>" alt="" />
				<a href="<?php echo $c_links[$product['id']] ?>"><?php echo $product['Translation'][$sf_user->getCulture()]['name'] ?></a>
			</li>
          <?php endforeach ?>
		</ul>
	</div>
	<a id="p-previous"><img src="/project_css_js/img/product_slider_left.png" alt="" /></a>
	<a id="p-next"><img src="/project_css_js/img/product_slider_right.png" alt="" /></a>

</div>
<?php endif ?>
<?php end_slot() ?>